const express = require('express');
const app = express();
const db = require('./db')
const path = require('path')
app.listen(3000, () => { console.log('服务器启动') });

const cors = require('cors');
app.use(cors());

app.use(express.urlencoded({ extended: false }))

const student = require(path.join(__dirname, 'routers', 'student'));
app.use('/api', student);